package com.ruoyi.client.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.ruoyi.client.utils.DeepSeekClient;
import com.ruoyi.common.minio.properties.MinioProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("test")
public class TestController {
    @Autowired
    MinioProperties properties;
    @PostMapping
    @SaIgnore
    public void tets(){
        System.out.println(properties);
    }
//    @Autowired
//    private DeepSeekClient deepSeekClient;

//    @PostMapping("/ask")
//    @SaIgnore
//    public String askDeepSeek(@RequestParam String prompt) {
//        try {
//            return deepSeekClient.callDeepSeek(prompt);
//        } catch (IOException e) {
//            e.printStackTrace();
//            return "Error calling DeepSeek API";
//        }
//    }
}
